#include<stdio.h>

int strcmp ( const char * src,const char * dst);
int main(int argc, char *argv[])
{
	char *src = "hello";
	char *dst = "heaaa";
    int ans;
	ans = strcmp(src, dst);
	printf("%d\n", ans);
	return 0;
}

int strcmp ( const char * src,const char * dst){
	int i = 0;
	int res;
	while(src[i] == dst[i] && src[i] != '\0'){
		i++;
	}
	res = src[i] - dst[i];
	if(res > 0)
		return 1;
	else if(res < 0) 
		return -1;
	else
		return 0;
}


